package com.guomao.listener;

import jakarta.servlet.ServletRequestEvent;
import jakarta.servlet.ServletRequestListener;
import jakarta.servlet.annotation.WebListener;

//@WebListener
public class MyListenerB implements ServletRequestListener {

    @Override
    public void requestInitialized(ServletRequestEvent sre) {
        System.out.println("有人发请求到服务器...");
    }


    @Override
    public void requestDestroyed(ServletRequestEvent sre) {

    }
}
